class StrategyEntity {
	int code;
	List<StrategyData> data;

	StrategyEntity({this.code, this.data}); 

	StrategyEntity.fromJson(Map<String, dynamic> json) {
		code = json['code'];
		if (json['data'] != null) {
			data = new List<StrategyData>();(json['data'] as List).forEach((v) { data.add(new StrategyData.fromJson(v)); });
		}
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['code'] = this.code;
		if (this.data != null) {
      data['data'] =  this.data.map((v) => v.toJson()).toList();
    }
		return data;
	}
}

class StrategyData {
	String articleTitle;
	String articleImgPath;
	String createTime;
	String author;
	int strategyId;
	int status;

	StrategyData({this.articleTitle, this.articleImgPath, this.createTime, this.author, this.strategyId, this.status});

	StrategyData.fromJson(Map<String, dynamic> json) {
		articleTitle = json['article_title'];
		articleImgPath = json['article_img_path'];
		createTime = json['create_time'];
		author = json['author'];
		strategyId = json['strategy_id'];
		status = json['status'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['article_title'] = this.articleTitle;
		data['article_img_path'] = this.articleImgPath;
		data['create_time'] = this.createTime;
		data['author'] = this.author;
		data['strategy_id'] = this.strategyId;
		data['status'] = this.status;
		return data;
	}
}
